<extend name="./Application/Admin/View/Index/index.html"/>

<block name="box">

    <div class="view-product">
        <div class="info-center">
            <div class="manage-head">
                <h6 class="padding-left manage-head-con">支付设置</h6>

            </div>
            <div class="offcial-table input-table table-margin clearfix">

                <if condition="$res eq null">
                    <div class="tr non-info show border-bottom-none">
                        <span>没查询到符合条件的记录</span>
                    </div>
                    <else />
                    <table class="table text-center">
                        <tr>
                            <th class="text-center">ID</th>
                            <th class="text-center">支付名</th>
                            <th class="text-center">创建时间</th>
                            <th class="text-center">是否开启</th>
                            <th class="text-center">操作</th>
                        </tr>
                        <foreach  name="res" item="vo" key="k">
                            <tr>
                                <td>{{$vo.id}}</td>
                                <td>{{$vo.name}}</td>
                                <td>{{$vo.create_time}}</td>
                                <td><a href="{{:U('System/is_open_pay',array('id'=>$vo['id'],'sub'=>$vo['is_open']))}}">{{$vo['is_open']==0?'不开启':'已开启'}}</a></td>
                                <td><a href="{{:U('System/pay_del',array('id'=>$vo['id']))}}" class="layui-btn layui-btn-sm layui-btn-radius layui-btn-danger">删除</a></td>

                            </tr>
                        </foreach>
                    </table>
                    <div class="row center-block">
                        <div class="layui-col-md5 layui-col-md-offset5">
                            {{$page}}
                        </div>
                    </div>

                </if>
                <a class="layui-btn" href="{{:U('System/payedit')}}">新增支付方式</a>

            </div>

        </div>
        <div class="show-page padding-big-right hidden">
            <div class="page">
            </div>
        </div>
    </div>


</block>